home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 8
/
Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso
/
Aminet
/
dev
/
c
/
SASalloca.readme
< prev
next >
Wrap
Text File
|
1995-09-20
|
1KB
|
37 lines
Short: Alloca() implementation for SAS/C
Author: proels@fmi.uni-passau.de (Stefan Proels)
Uploader: proels@fmi.uni-passau.de (Stefan Proels)
Type: dev/c
The use of alloca() is quite common for many UNIX applications.
If you intend to port such a program using SAS/C you'd have to
eliminate all alloca()s as SAS/C doesn't supply this function.
There is already another "mostly portable" implementation of
alloca(). However, it does not work with SAS/C as it makes
assumptions about the compiler's handling of the stack-pointer
which are not true for SAS/C.
This is where SASalloca comes in. The idea is to (ab)use the
_PROLOG() and _EPILOG() hooks used by the profiler.
There are no limitations regarding the use of stackextention,
setjmp() and longjmp(), etc. In general, all you have to do is
to compile your sources with PROFILE enabled and to link them
with this alloca implementation.
This package is PUBLIC DOMAIN. Source included.
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
1921 840 56.2% 19-Jul-95 21:08:26 +alloca.c
660 411 37.7% 19-Jul-95 21:23:20 +alloca.o
684 357 47.8% 19-Jul-95 21:08:14 +alloca.h
9772 3665 62.4% 19-Jul-95 21:23:20 +Readme
193 143 25.9% 19-Jul-95 21:29:24 +SMakefile
-------- ------- ----- --------- --------
13230 5416 59.0% 20-Jul-95 12:52:06 5 files